using namespace std;

#include<stdio.h>
#include<iostream>
#include<fstream>
#include<sstream>
#include<cstdlib>

int main(int argc,char * argv[]){
  if(argc<3) {
    cerr<<"Usage: <input rows> <input cols>\n";
    return 1;
  }
  int arg=0;
  int rows = atoi(argv[++arg]);
  int cols = atoi(argv[++arg]);

  int readlen = cols * sizeof(float);
  float * vec = new float[cols];

  for(int row=0;row<rows;++row){
    char * buffer = reinterpret_cast<char *>(vec);
    cin.read(buffer,readlen);
    vec = reinterpret_cast<float * >(buffer);
    for(int col=0;col<cols;++col){
      if(col) cout<<"\t";
      cout<<vec[col];
    }
    cout<<endl;
  }
  return 0;
}
